package com.example.demo.chat.myhandler;

import com.example.demo.chat.NettyAsyncServer;
import com.example.demo.chat.Result;
import io.netty.channel.ChannelHandlerContext;

public class JoinGroupHandler {
    public static void execute(ChannelHandlerContext ctx){
        NettyAsyncServer.GROUP.add(ctx.channel());
        ctx.channel().writeAndFlush(Result.sucess("加入世界群聊成功"));

    }
}
